/*
 * @Author: your name
 * @Date: 2021-11-09 20:29:38
 * @LastEditTime: 2021-12-03 18:55:34
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\client\src\main.js
 */
import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import VMdPreview from "@kangc/v-md-editor/lib/preview";
import "@kangc/v-md-editor/lib/style/preview.css";
import githubTheme from "@kangc/v-md-editor/lib/theme/github.js";
import "@kangc/v-md-editor/lib/theme/style/github.css";
import VueMarkdownEditor from "@kangc/v-md-editor";
import "@kangc/v-md-editor/lib/style/base-editor.css";
import vuepressTheme from "@kangc/v-md-editor/lib/theme/vuepress.js";
import "@kangc/v-md-editor/lib/theme/style/vuepress.css";
import i18n from "./i18n"; //i18n

import Prism from "prismjs";

VueMarkdownEditor.use(vuepressTheme, {
    Prism,
});

// highlightjs
import hljs from "highlight.js";

VMdPreview.use(githubTheme, {
    Hljs: hljs,
    toc: {
        includeLevel: [3, 4],
    },
});

import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css"; // or 'ant-design-vue/dist/antd.less'
Vue.use(ElementUI);
Vue.use(Antd);
Vue.use(VMdPreview);
Vue.use(VueMarkdownEditor);
new Vue({
    router,
    store,
    i18n,
    render: (h) => h(App),
}).$mount("#app");